import React, { memo, useId, useState } from 'react'

export default memo(function App() {
  const [count, setCount] = useState(0)
  const id = useId()
  console.log(id)
  return (
    <div>
      <button onClick={(e) => setCount(count + 1)}>+1: {count}</button>

      <label htmlFor={id}>
        用户名： <input type="text" id={id} />
      </label>
    </div>
  )
})
